package com.antdesignbackend.backend.form.animalApplication.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 出具《福建省动物、动物产品准调证》申请单
 *
 * @author 林宇杰
 * @email animalApplication
 * @date 2020-08-12 17:47:49
 */

@Data
@TableName(value = "t_animalapplication")
public class AnimalApplication implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//是否已阅读温馨提示内容
	@TableField(value = "ReadActivity")
	private String readActivity;
	//申请日期
	@TableField(value = "ApplicationDate")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date applicationDate;
	//申请单位(或个人）名称
	@TableField(value = "ApplicationName")
	private String applicationName;
	//企业代码(个人身份证号码)
	@TableField(value = "EnterpriseNo")
	private String enterpriseNo;
	//联系电话
	@TableField(value = "Phone")
	private String phone;
	//营业执照或身份证照片
	@TableField(value = "LicensePhoto")
	private String licensePhoto;
	//启运省
	@TableField(value = "StarProvince")
	private Integer starProvince;
	//启运市
	@TableField(value = "StarCity")
	private Integer starCity;
	//启运区县
	@TableField(value = "StarDistrict")
	private Integer starDistrict;
	//启运乡镇
	@TableField(value = "StarTownship")
	private Integer starTownship;
	//发货详细地址
	@TableField(value = "Address")
	private String address;
	//发货完整地址
	@TableField(value = "FullAddress")
	private String fullAddress;
	//发货单位
	@TableField(value = "Company")
	private String company;
	//到达省
	@TableField(value = "ArriveProvince")
	private Integer arriveProvince;
	//到达市
	@TableField(value = "ArriveCity")
	private Integer arriveCity;
	//到达区县
	@TableField(value = "ArriveDistrict")
	private Integer arriveDistrict;
	//到达乡镇
	@TableField(value = "ArriveTownship")
	private Integer arriveTownship;
	//销售详细地址
	@TableField(value = "SaleDestination")
	private String saleDestination;
	//销售完整地址
	@TableField(value = "FullSaleAddress")
	private String fullSaleAddress;
	//接货单位
	@TableField(value = "ReceivingUnit")
	private String receivingUnit;
	//动物、动物产品类别
	@TableField(value = "AnimalType")
	private String animalType;
	//调运数量(头、公斤、羽)
	@TableField(value = "Number")
	private Integer number;
	//运输方式
	@TableField(value = "Transport")
	private String transport;
	//承运人
	@TableField(value = "Carry")
	private String carry;
	//承运人电话
	@TableField(value = "CarryPhone")
	private String carryPhone;
	//车号
	@TableField(value = "CarNo")
	private String carNo;
	//拟调入时间
	@TableField(value = "TransferTime")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date transferTime;
	//用途
	@TableField(value = "Purpose")
	private String purpose;
	//运输路经省市县名
	@TableField(value = "Route")
	private String route;
	//拟调入动物或产品的非洲猪瘟检测报告
	@TableField(value = "ReportPhoto")
	private String reportPhoto;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，0未通过，1通过，2审批中，3驳回
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
	//审批意见
	@TableField(value = "Opinion")
	private String opinion;
	//审批人
	@TableField(value = "AprovalId")
	private Integer aprovalId;
	@TableField(value = "Aproval")
	private String aproval;
	//审批时间
	@TableField(value = "AprovalTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date aprovalTime;
	//出证人
	@TableField(value = "CertificateId")
	private Integer certificateId;
	@TableField(value = "Certificate")
	private String certificate;
	//出证时间
	@TableField(value = "CertificateTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date certificateTime;
	//出证人签字
	@TableField(value = "Witness")
	private String witness;
	//畜主签字
	@TableField(value = "Livestock")
	private String livestock;


	//启运省
	@TableField(value = "StarProvinceName")
	private String starProvinceName;
	//启运市
	@TableField(value = "StarCityName")
	private String starCityName;
	//启运区县
	@TableField(value = "StarDistrictName")
	private String starDistrictName;
	//启运乡镇
	@TableField(value = "StarTownshipName")
	private String starTownshipName;
	//到达省
	@TableField(value = "ArriveProvinceName")
	private String arriveProvinceName;
	//到达市
	@TableField(value = "ArriveCityName")
	private String arriveCityName;
	//到达区县
	@TableField(value = "ArriveDistrictName")
	private String arriveDistrictName;
	//到达乡镇
	@TableField(value = "ArriveTownshipName")
	private String arriveTownshipName;
}
